let Main = () => import('../views/main')
export default [
  {//运营管理
    path: 'Commentmanagement',
    name: 'Commentmanagement',//评论管理
    component: Main,
    meta:{
      title:"运营管理",
      icon:"icon-yunying"
    },
    children: [
      {//运营管理
        path: 'Commentmanagement',
        name: 'Commentmanagement',//评论管理
        component: () => import('../pages/yunyinManagement/Commentmanagement.vue'),//评论管理
        meta:{
          title:"评论管理"
        }
      }, {
        path: 'Freightmanagement',
        name: 'Freightmanagement',//运费管理
        component: () => import('../pages/yunyinManagement/Freightmanagement.vue'),//运费管理
        meta:{
          title:"运费管理"
        }
      }, {
        path: 'Ordermanagement',
        name: 'Ordermanagement',//订单管理
        component: () => import('../pages/yunyinManagement/Ordermanagement.vue'),//订单管理
        meta:{
          title:"订单管理"
        }
      }
    ]
  },{// 商品管理
    path: 'CategoryManagement',
    name: 'CategoryManagement',//类目管理
    component: Main,
    meta:{
      title:"商品管理",
      icon:"icon-shangpinguanli"
    },
    children: [
      {// 商品管理
        path: 'CategoryManagement',
        name: 'CategoryManagement',//类目管理
        component: () => import('../pages/Commoditymanagement/CategoryManagement.vue'),//类目管理
        meta:{
          title:"类目管理"
        }
      }, {
        path: 'GroupPurchaseGoods',
        name: 'GroupPurchaseGoods',//团购商品
        component: () => import('../pages/Commoditymanagement/GroupPurchaseGoods.vue'),//团购商品
        meta:{
          title:"团购商品"
        }
      }, {
        path: 'ProductList',
        name: 'ProductList',//商品列表
        component: () => import('../pages/Commoditymanagement/ProductList.vue'),//商品列表
        meta:{
          title:"商品列表"
        },
      },
      {
        path: 'ProductAdd',
        name:"ProductAdd",
        meta:{
          title:"商品添加",
          keepAlive:true,
          parent:'/Index/CategoryManagement/ProductList'
        },
        component: () => import(/* webpackChunkName: "about" */ '../pages/Commoditymanagement/product/productAdd.vue')
      },
      {
        path: 'ProductEdit',
        name:"ProductEdit",
        meta:{
          title:"商品编辑",
          parent:'/Index/CategoryManagement/ProductList'
        },
        component: () => import(/* webpackChunkName: "about" */ '../pages/Commoditymanagement/product/productEdit.vue')
      },
    ]
  },
{//推广管理
  path: 'AdvertisingManagement',
  name: 'AdvertisingManagement',//广告管理
  component: Main,
  meta:{
    title:"推广管理",
    icon:"icon-fenlei"
  },
  children: [
    {//推广管理
      path: 'AdvertisingManagement',
      name: 'AdvertisingManagement',//广告管理
      component: () => import('../pages/tuiguanManagement/AdvertisingManagement.vue'),//广告管理
      meta:{
        title:"广告管理"
      }
    }, {
      path: 'CouponManagement',
      name: 'CouponManagement',//优惠券管理
      component: () => import('../pages/tuiguanManagement/CouponManagement.vue'),//优惠券管理
      meta:{
        title:"优惠券管理"
      }
    }
  ]
},
 {//用户管理
  path: 'AddressManagement',
  name: 'AddressManagement',//地址管理
  component: Main,
  meta:{
    title:"用户管理",
    icon:"icon-yonghu3"
  },
  children: [
    {//用户管理
      path: 'AddressManagement',
      name: 'AddressManagement',//地址管理
      component: () => import('../pages/userManagement/AddressManagement.vue'),//地址管理
      meta:{
        title:"地址管理"
      }
    }, {
      path: 'MemberManagement',
      name: 'MemberManagement',//会员管理
      component: () => import('../pages/userManagement/MemberManagement.vue'),//会员管理
      meta:{
        title:"会员管理"
      }
    }
  ]
},
{//系统管理
  path: 'Administrators',
  name: 'Administrators',//管理员
  component: Main,
  meta:{
    title:"系统管理",
    icon:"icon-shezhi"
  },
  children: [
    {//系统管理
      path: 'Administrators',
      name: 'Administrators',//管理员
      component: () => import('../pages/systemManagement/Administrators.vue'),//管理员
      meta:{
        title:"管理员"
      }
    }, {
      path: 'DailyOperation',
      name: 'DailyOperation',//操作日志
      component: () => import('../pages/systemManagement/DailyOperation.vue'),//操作日志
      meta:{
        title:"操作日志"
      }
    }, {
      path: 'roleManagement',
      name: 'roleManagement',//角色管理
      component: () => import('../pages/systemManagement/roleManagement.vue'),//角色管理
      meta:{
        title:"角色管理"
      }
    }, {
      path: 'systemConfiguration',
      name: 'systemConfiguration',//系统配置
      component: () => import('../pages/systemManagement/systemConfiguration.vue'),//系统配置
      meta:{
        title:"系统配置"
      }
    }
  ]
}
]
